/**
 * JAVACC DEMO 1.0
 */
package com.apache.plateform.filter;

import com.apache.license.filter.AbstractFilter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * description:  系统license验证类
 *
 * @author Hou Dayu 创建时间：2016-12-23
 */
public class LicenseFilter extends AbstractFilter {

    /**
     * TODO 简单描述该方法的实现功能（可选）.
     */
    public void destroy() {
        ///
    }

    /**
     * TODO 简单描述该方法的实现功能（可选）.
     */
    public void doFilter(ServletRequest srequest, ServletResponse sresponse, FilterChain arg2)
            throws IOException, ServletException {
        HttpServletRequest request = (HttpServletRequest) srequest;
        HttpServletResponse response = (HttpServletResponse) sresponse;

        arg2.doFilter(request, response);
    }

    /**
     * TODO 简单描述该方法的实现功能（可选）.
     */
    public void init(FilterConfig arg0) throws ServletException {
        this.initLincense();
    }

}
